/**
 *  Eclipse Public License 1.0
 */
package org.fireblade.easysms;

import java.util.ArrayList;
import java.util.List;

/**
 * Simple pojo for a contact from the phonebook
 * @see PhoneNumber
 */
public class Contact {
  /** contact it */
  int contactId;
  /** display name */
  String displayName;
  /** primary phone id of contact */
  int primaryPhone;
  /** is starred in android */
  boolean isStarred;
  /** contains the mobile numbers of the contact, primary phone (if available) should be first */
  List<PhoneNumber> numbers = new ArrayList<PhoneNumber>();


  /*
   * (non-Javadoc)
   * @see java.lang.Object#toString()
   */
  @Override
  public String toString() {
    return "\r\n" + contactId + "/" + displayName + "/" + primaryPhone + "/" + isStarred + ": " + numbers;
  }
}
